﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Core.Xml.Ogc.Ows
{
    class RequestMethodType : OnlineResourceType, IXmlType
    {
        public DomainType Constraint { get; set; }

        public XElement CreateXElement(XName elementName)
        {
            XElement requestMethod = base.CreateXElement(elementName);

            requestMethod.Add(Constraint.CreateXElement(elementName));

            return requestMethod;
        }
    }
}
